﻿<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>采供协同平台-@ViewBag.Title</title>
    <!-- 棒棒的字体 -->
    <link rel="stylesheet" href="~/plugins/fontawesome-free/css/all.min.css">

    <link href="~/plugins/sweetalert2-theme-bootstrap-4/bootstrap-4.min.css" rel="stylesheet" />

    <link href="~/plugins/toastr/toastr.min.css" rel="stylesheet" />

    <link href="~/plugins/select2/css/select2.min.css" rel="stylesheet" />
    <link href="~/plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css" rel="stylesheet" />

    <!-- Theme style -->
    <link rel="stylesheet" href="~/dist/css/adminlte.min.css">

    @await Html.PartialAsync("_Script")
</head>
<body class="hold-transition sidebar-mini layout-fixed">
    <div class="wrapper">
        <div class="preloader flex-column justify-content-center align-items-center">
            <img class="animation__shake" src="~/dist/img/AdminLTELogo.png" alt="AdminLTELogo" height="60" width="60">
        </div>

        <nav class="main-header navbar navbar-expand navbar-white navbar-light">
            <!-- 右边模块的左上角 -->
            <ul class="navbar-nav">
                <li class="nav-item">
                    <a class="nav-link" data-widget="pushmenu" href="JavaScript:void(0);" role="button">
                        <i class="fas fa-bars"></i>
                    </a>
                </li>
                <li class="nav-item d-none d-sm-inline-block">
                    <a class="nav-link" asp-action="Index" asp-controller="PurchaseOrder">主页</a>
                </li>
                <li class="nav-item d-none d-sm-inline-block">
                    <a class="nav-link" data-toggle="modal" data-target="#staticBackdrop">关于</a>
                </li>
            </ul>

            <!-- 右边模块 -->
            <ul class="navbar-nav ml-auto">
                <!-- 右上角消息菜单 -->
                <li class="nav-item">
                    <a class="nav-link">
                        <i class="fas fa-user-circle" title="欢迎：@User.Identity.Name"></i>
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" asp-action="Logout" asp-controller="Account">
                        <i class="fas fa-power-off" title="注销"></i>
                    </a>
                </li>

                <li class="nav-item">
                    <a class="nav-link" data-widget="fullscreen" href="JavaScript:void(0);" role="button">
                        <i class="fas fa-expand-arrows-alt" title="全屏"></i>
                    </a>
                </li>
            </ul>
        </nav>

        <!-- 左侧栏 -->
        <aside class="main-sidebar sidebar-dark-primary elevation-4">
            <!-- 网站Logo -->
            <a asp-action="Index" asp-controller="PurchaseOrder" class="brand-link">
                <img src="~/dist/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
                <span class="brand-text font-weight-light">采供协同平台</span>
            </a>

            <!-- 登录人信息 -->
            <div class="sidebar">
                <div class="user-panel mt-3 pb-3 mb-3 d-flex">
                    <div class="image">
                        <img src="~/dist/img/user.jpg" class="img-circle elevation-2" asp-append-version="true" alt="User Image">
                    </div>
                    <div class="info">
                        <a class="d-block">
                            <vc:identity-post></vc:identity-post>
                        </a>
                    </div>
                </div>

                <!-- 侧边栏菜单 -->
                <nav class="mt-2">
                    @await Html.PartialAsync("_NavMenu")
                </nav>
            </div>
        </aside>

        <div class="content-wrapper">
            <!-- 内容页眉（页眉） -->
            <div class="content-header">
                <div class="container-fluid">
                    <div class="row mb-2">
                        <div class="col-sm-6">
                            <h1 class="m-0">@ViewBag.Title</h1>
                        </div>
                        <div class="col-sm-6">
                            <ol class="breadcrumb float-sm-right">
                                <li class="breadcrumb-item"><a asp-action="Index" asp-controller="PurchaseOrder">主页</a></li>
                                <li class="breadcrumb-item active">@ViewBag.Title</li>
                            </ol>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 主体内容 -->
            <section class="content">
                <div class="container-fluid">
                    @RenderBody()
                </div>
            </section>
        </div>
        <footer class="main-footer">
            <strong>Copyright &copy; 2014-2021 供应商管理系统.</strong>版权所有。
            <div class="float-right d-none d-sm-inline-block">
                <b>版本</b> 1.2.3
            </div>
        </footer>

        <!--控制侧边栏 -->
        <aside class="control-sidebar control-sidebar-dark"></aside>

    </div>

    @await Html.PartialAsync("_ModalComponents")

    @if (IsSectionDefined("PurchaseOrderJsFile"))
    {
        @RenderSection("PurchaseOrderJsFile", required: false)
    }

    @if (IsSectionDefined("ReturnOrderJsFile"))
    {
        @RenderSection("ReturnOrderJsFile", required: false)
    }
    @if (IsSectionDefined("ReturnOrderEditJsFile"))
    {
        @RenderSection("ReturnOrderEditJsFile", required: false)
    }

    @if (IsSectionDefined("DeliverOrderJsFile"))
    {
        @RenderSection("DeliverOrderJsFile", required: false)
    }
    @if (IsSectionDefined("DeliverOrderEditJsFile"))
    {
        @RenderSection("DeliverOrderEditJsFile", required: false)
    }
</body>
</html>
